﻿using Syspetro.Core.DynamicApi;
using Syspetro.Core.Encrypt;
using Syspetro.Deploy.AuthorizationReq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BJ.AuthApp.Admin
{
    [RoleLevel(10)]
    public class AdminHelper : BaseDynamicApi
    {
        /// <summary>
        /// 加密
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public string Encryption(string str)
        {
            return RSAHelper.Encrypt(str);
        }
        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public string Decrypt(string str)
        {
            return RSAHelper.Decrypt(str);
        }
    }
}
